<template>
  <div class="talks">
    <BreadCrumb>
      <template v-slot:first>首页</template>
      <template v-slot:second>说说</template>
      <template v-slot:third>说说</template>
    </BreadCrumb>
    <div class="talks_main">
      <router-view v-slot="{ Component }">
        <transition name="comment" mode="out-in">
          <component :is="Component" />
        </transition>
      </router-view>
      <div class="talks_rg" v-if="!isMobile">
        <Person />
      </div>
    </div>
  </div>
</template>

<script setup>
  import { toRefs } from 'vue'
  import BreadCrumb from '@/components/BreadCrumb.vue'
  import Person from '@/components/Person.vue'
  import useAppStore from '@/store/appStore'
  const appStore = useAppStore()
  const { isMobile } = toRefs(appStore)
</script>

<style lang="less" scoped>
  .talks {
    .talks_main {
      display: flex;
      justify-content: space-around;
      width: 100%;
      .talks_rg {
        width: 20%;
      }
    }
  }
</style>
